<template>
  <div class="router-content">
    <inside v-for="(div, index) in article" :key="index" :title="div.title" :contents="div.contents" :urls="div.urls"></inside>
  </div>
</template>

<script>
import Bus from '@/assets/bus'
import inside from '@/components/inside'
export default {
  name: 'index',
  components: {
    inside
  },
  data () {
    return {
      menus: [],
      article: []
    }
  },
  created () {
    this.menus = this.$route.matched
    Bus.$emit('menus', this.menus)
    // console.log(this.$route.matched)
    this.write()
  },
  methods: {
    write () {
      this.article = [
        {
          title: '操作充值导入',
          contents: [
            '在批量充值导入页面可以选择持卡人类别，再选择“下载模板”在模板里填写充值金额后，点击“选取文件”选择需要导入的文件。总金额可不填，如果填写，可验证Execl金额的准确性。选择支付方式后点击“开始导入”批量充值就完成了。',
            ''
          ],
          urls: [
            '/static/imgs/card/recharge_1.png',
            '/static/imgs/card/recharge_2.png'
          ]
        }, {
          title: '导入成功',
          contents: [
            '操作成功会出现以下画面'
          ],
          urls: [
            '/static/imgs/card/recharge_3.png'
          ]
        }, {
          title: '导入失败',
          contents: [
            '如果导入失败会提示错误信息，在哪行哪列出现问题。'
          ],
          urls: [
            '/static/imgs/card/recharge_4.png'
          ]
        }
      ]
    }
  }
}
</script>
<style>
</style>
